home *** CD-ROM | disk | FTP | other *** search
- unit Dtmfdemo;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, DTMFEdit, Buttons;
-
- type
- TDTMFEditDemo = class(TForm)
- QandZ: TCheckBox;
- AutoFormat: TCheckBox;
- NumericFormat: TCheckBox;
- Button1: TButton;
- Numeric: TEdit;
- AlphaNumeric: TEdit;
- Locale: TEdit;
- Country: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- DTMFEdit1: TDTMFEdit;
- procedure QandZClick(Sender: TObject);
- procedure NumericFormatClick(Sender: TObject);
- procedure AutoFormatClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- DTMFEditDemo: TDTMFEditDemo;
-
- implementation
-
- {$R *.DFM}
-
- procedure TDTMFEditDemo.QandZClick(Sender: TObject);
- begin
- DTMFEdit1.AllowQandZ := QandZ.Checked;
- end;
-
- procedure TDTMFEditDemo.NumericFormatClick(Sender: TObject);
- begin
- DTMFEdit1.NumericConversion := NumericFormat.Checked;
- end;
-
- procedure TDTMFEditDemo.AutoFormatClick(Sender: TObject);
- begin
- DTMFEdit1.AutoFormat := AutoFormat.Checked;
- end;
-
- procedure TDTMFEditDemo.FormCreate(Sender: TObject);
- begin
- QandZ.Checked := DTMFEdit1.AllowQandZ;
- NumericFormat.Checked := DTMFEdit1.NumericConversion;
- AutoFormat.Checked := DTMFEdit1.AutoFormat;
- end;
-
- procedure TDTMFEditDemo.Button1Click(Sender: TObject);
- begin
- DTMFEdit1.ParseDTMF;
- end;
-
- end.
-